package com.yugao.fintech.antelope.shop.model.rqrs.goods.spec;

import com.yugao.fintech.antelope.base.model.constants.ValidationCons;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 商品规格
 *

 */
@Getter
@Setter
public class GoodsSpecBase {
	@ApiModelProperty(value = "规格名称")
	@NotEmpty(message = ValidationCons.NOT_EMPTY)
	private String name;

	@ApiModelProperty(value = "选择类型, 1: 单选；2: 多选")
	private String selectType;
	
    @NotNull(message = ValidationCons.NOT_EMPTY)
	@ApiModelProperty(value = "排序")
	private Integer sortNo;
	
	@ApiModelProperty(value = "是否支持手动新增, 0: 不支持；1: 支持")
	private String handAddStatus;
	
	@ApiModelProperty(value = "规格值数据, 多个值之间用逗号隔开")
	private String valueData;
}
